package com.yifeng.repo.controller.rocketmq.message.rebalance;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 消息发送类型枚举类
 *
 * @author xiongjingming
 * @since 2023-10-18
 */
public enum MsgSendTypeEnum {
    MARKETING(0, "营销"),
    REALTIME_NOTIFY(1, "实时通知"),
    NON_REALTIME_NOTIFY(2, "准实时通知"),
    CALLBACK(3, "回调"),
    ;

    @EnumValue
    private final Integer code;
    private final String name;

    MsgSendTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
